'''class A(object):
    def __init__(self):
        self.num = 1

    def info_print(self):
        print(self.num)

class B(A):
    pass

result = B()
result.info_print()'''


class Master(object):
    def __init__(self):
        self.kongfu = '[很好的制作方法]'

    def make_cake(self):
        print(f"{self.kongfu}要继续传承")

class School(Master):
    def __init__(self) :
        self.kongfu = '[黑马煎饼果子配方]'

    def make_cake(self):
        print(f"{self.kongfu}制作很好")
        super(School, self).__init__()
        super(School, self).make_cake()

class prentice(School):
    def __init__(self):
        self.kongfu = '[独创的方法]'

    def make_cake(self):
        self.__init__()
        print(f"{self.kongfu}极其棒")

    def make_master_cake(self):
        Master.__init__(self)
        Master.make_cake(self)

    def make_school_cake(self):
        School.__init__(self)
        School.make_cake(self)

    def make_old_cake(self):
        super(prentice, self).__init__()
        super(prentice, self).make_cake()


p = prentice()
p.make_old_cake()
